<?php

namespace app\admin\validate;

use think\Validate;

class Admin extends Validate
{
    protected $rule = [
        'username'  =>  'require|max:25',
        'password' =>  'require',
    ];
	
	protected $message  =   [
	        'username.require' => '姓名必须填写',
	        'username.max'     => '姓名最多不能超过25个字符',
	        'password.require'   => '密码必须填写',
	    ];

}